package demo4j.apijson;

import apijson.RequestMethod;
import apijson.orm.AbstractObjectParser;
import apijson.orm.Join;
import apijson.orm.SQLConfig;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class APIJSONObjectParser extends AbstractObjectParser<Long> {
    public APIJSONObjectParser(JSONObject request, String parentPath, SQLConfig arrayConfig, boolean isSubQuery, boolean isTable, boolean isArrayMainTable) throws Exception {
        super(request, parentPath, arrayConfig, isSubQuery, isTable, isArrayMainTable);
    }

    @Override
    public SQLConfig<Long> newSQLConfig(RequestMethod method, String table, String alias, JSONObject request, List<Join> joinList, boolean isProcedure) throws Exception {
        return APIJSONSQLConfig.newSQLConfig(method, table, alias, request, joinList, isProcedure);
    }
}
